package com.kara.woodAgent.agent.wood.context;

import com.kara.woodAgent.agent.graph.impl.MessageGraphContext;
import com.kara.woodAgent.agent.wood.model.Plan;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author tzy
 * @version 1.0
 * @project wood_agent
 * @description
 * @date 2025/6/9 11:11:23
 */
@Data
public class WoodContext extends MessageGraphContext {


	private PlanContext planContext;


	List<Plan> plans = new ArrayList<>();

	Integer currentPlanId = null;

	Plan currentPlan = null;

	private String userQuestion;

	private List<String> knowList = new ArrayList<>();

	public Plan getNextPlan() {
		if (currentPlanId + 1 > plans.size() - 1) {
			return null;
		}

		return plans.get(++currentPlanId);
	}
}
